package com.voltmao.persistent.model;

import java.util.ArrayList;
import java.util.List;

public class AdminRoleMenuMapsCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer pageSize;

    public AdminRoleMenuMapsCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart = limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andDataIdIsNull() {
            addCriterion("data_id is null");
            return (Criteria) this;
        }

        public Criteria andDataIdIsNotNull() {
            addCriterion("data_id is not null");
            return (Criteria) this;
        }

        public Criteria andDataIdEqualTo(String value) {
            addCriterion("data_id =", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotEqualTo(String value) {
            addCriterion("data_id <>", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThan(String value) {
            addCriterion("data_id >", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdGreaterThanOrEqualTo(String value) {
            addCriterion("data_id >=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThan(String value) {
            addCriterion("data_id <", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLessThanOrEqualTo(String value) {
            addCriterion("data_id <=", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdLike(String value) {
            addCriterion("data_id like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotLike(String value) {
            addCriterion("data_id not like", value, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdIn(List<String> values) {
            addCriterion("data_id in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotIn(List<String> values) {
            addCriterion("data_id not in", values, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdBetween(String value1, String value2) {
            addCriterion("data_id between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andDataIdNotBetween(String value1, String value2) {
            addCriterion("data_id not between", value1, value2, "dataId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdIsNull() {
            addCriterion("tbl_admin_role_id is null");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdIsNotNull() {
            addCriterion("tbl_admin_role_id is not null");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdEqualTo(String value) {
            addCriterion("tbl_admin_role_id =", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdNotEqualTo(String value) {
            addCriterion("tbl_admin_role_id <>", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdGreaterThan(String value) {
            addCriterion("tbl_admin_role_id >", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdGreaterThanOrEqualTo(String value) {
            addCriterion("tbl_admin_role_id >=", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdLessThan(String value) {
            addCriterion("tbl_admin_role_id <", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdLessThanOrEqualTo(String value) {
            addCriterion("tbl_admin_role_id <=", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdLike(String value) {
            addCriterion("tbl_admin_role_id like", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdNotLike(String value) {
            addCriterion("tbl_admin_role_id not like", value, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdIn(List<String> values) {
            addCriterion("tbl_admin_role_id in", values, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdNotIn(List<String> values) {
            addCriterion("tbl_admin_role_id not in", values, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdBetween(String value1, String value2) {
            addCriterion("tbl_admin_role_id between", value1, value2, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminRoleIdNotBetween(String value1, String value2) {
            addCriterion("tbl_admin_role_id not between", value1, value2, "tblAdminRoleId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdIsNull() {
            addCriterion("tbl_admin_menu_id is null");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdIsNotNull() {
            addCriterion("tbl_admin_menu_id is not null");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdEqualTo(String value) {
            addCriterion("tbl_admin_menu_id =", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdNotEqualTo(String value) {
            addCriterion("tbl_admin_menu_id <>", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdGreaterThan(String value) {
            addCriterion("tbl_admin_menu_id >", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdGreaterThanOrEqualTo(String value) {
            addCriterion("tbl_admin_menu_id >=", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdLessThan(String value) {
            addCriterion("tbl_admin_menu_id <", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdLessThanOrEqualTo(String value) {
            addCriterion("tbl_admin_menu_id <=", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdLike(String value) {
            addCriterion("tbl_admin_menu_id like", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdNotLike(String value) {
            addCriterion("tbl_admin_menu_id not like", value, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdIn(List<String> values) {
            addCriterion("tbl_admin_menu_id in", values, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdNotIn(List<String> values) {
            addCriterion("tbl_admin_menu_id not in", values, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdBetween(String value1, String value2) {
            addCriterion("tbl_admin_menu_id between", value1, value2, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuIdNotBetween(String value1, String value2) {
            addCriterion("tbl_admin_menu_id not between", value1, value2, "tblAdminMenuId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdIsNull() {
            addCriterion("tbl_admin_menu_fun_id is null");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdIsNotNull() {
            addCriterion("tbl_admin_menu_fun_id is not null");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdEqualTo(String value) {
            addCriterion("tbl_admin_menu_fun_id =", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdNotEqualTo(String value) {
            addCriterion("tbl_admin_menu_fun_id <>", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdGreaterThan(String value) {
            addCriterion("tbl_admin_menu_fun_id >", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdGreaterThanOrEqualTo(String value) {
            addCriterion("tbl_admin_menu_fun_id >=", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdLessThan(String value) {
            addCriterion("tbl_admin_menu_fun_id <", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdLessThanOrEqualTo(String value) {
            addCriterion("tbl_admin_menu_fun_id <=", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdLike(String value) {
            addCriterion("tbl_admin_menu_fun_id like", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdNotLike(String value) {
            addCriterion("tbl_admin_menu_fun_id not like", value, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdIn(List<String> values) {
            addCriterion("tbl_admin_menu_fun_id in", values, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdNotIn(List<String> values) {
            addCriterion("tbl_admin_menu_fun_id not in", values, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdBetween(String value1, String value2) {
            addCriterion("tbl_admin_menu_fun_id between", value1, value2, "tblAdminMenuFunId");
            return (Criteria) this;
        }

        public Criteria andTblAdminMenuFunIdNotBetween(String value1, String value2) {
            addCriterion("tbl_admin_menu_fun_id not between", value1, value2, "tblAdminMenuFunId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}